home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rwvector.lha / RWVector2.1 / src / ,vecdefs.h next >
Text File  |  1989-08-14  |  524b  |  29 lines

  1. // Defines the abilities of various Vector types
  2.  
  3. #define Double_TYPE    1
  4. #define DComplex_TYPE    2
  5. #define FComplex_TYPE    3
  6. #define Float_TYPE    4
  7. #define Int_TYPE    5
  8.  
  9. #if TYPE!=DComplex_TYPE
  10. #define HAS_MINMAX    1
  11. #define HAS_INCRDECR    1
  12. #define REGISTER    register
  13. #else
  14. // Complexes won't fit in a register
  15. #define REGISTER
  16. #endif
  17.  
  18. #if TYPE != Int_TYPE
  19. #define APPLY_MATH    1
  20. #define HAS_POW        1
  21. #define HAS_VARIANCE    1
  22. #define HAS_DIVIDE    1
  23. #define HAS_MEAN    1
  24. #endif
  25.  
  26. #if TYPE==Double_TYPE || TYPE==Float_TYPE
  27. #define HAS_ATAN2    1
  28. #endif
  29.